#parse("admin/inc/contentleft.html")
<script type="text/javascript"
	src="$thiscontextpath/ckeditor/ckeditor.js">
</script>
<script type="text/javascript"
	src="$thiscontextpath/ckeditor/ckeditor.js">
</script>
<script type="text/javascript"
	src="$thiscontextpath/ckfinder/ckfinder.js">
</script>
<div id="center-column">
	<div class="top-bar">
		<a href="new" class="button">增加 资讯 </a>
		<h1>
			Contents
		</h1>
		<div class="breadcrumbs">
			<a href="#">Homepage</a> /
			<a href="#">Contents</a>
		</div>
	</div>
	<br />
	<div class="select-bar">

	</div>
	<div class="table">
		<img src="../../img/bg-th-left.gif" width="8" height="7" alt=""
			class="left" />
		<img src="../../img/bg-th-right.gif" width="7" height="7" alt=""
			class="right" />
		<table class="listing form" cellpadding="0" cellspacing="0">
			<form name="editslide" id="editslide" method="post" action="../save">
				<input type="hidden" name="slideid" value="${entity.slideid}" />
				<tr>
					<th class="full" colspan="2">
						增加项
					</th>
				</tr>
				<tr>
				<td class="first" width="172">
					<strong>轮换图名称</strong>
				</td>
				<td class="last">
					<INPUT type="text" class=text name=slidename value='${entity.slidename}'>
				</td>
			</tr>
<tr>
				<td class="first" width="172">
					<strong>轮换图链接</strong>
				</td>
				<td class="last">
					<INPUT type="text" class=text name=linkurl value='${entity.linkurl}'>
				</td>
			</tr>
			<script type="text/javascript">

function BrowseServer(inputId) {
	var finder = new CKFinder();
	finder.basePath = '../ckfinder/'; //导入CKFinder的路径
	finder.selectActionFunction = SetFileField; //设置文件被选中时的函数
	finder.selectActionData = inputId; //接收地址的input ID
	finder.popup();
}

//文件选中时执行
function SetFileField(fileUrl, data) {
	document.getElementById(data["selectActionData"]).value = fileUrl;
}
</script>


			<tr>
				<td class="first"">
					<strong>轮换图图片</strong>
				</td>
				<td class="last">
					<input id="slideimg" name="slideimg" type="text" size=40 value='${entity.slideimg}'/>
					<input type="button" value="浏览图片"
						onclick="BrowseServer( 'slideimg' );" />


				</td>
			</tr>


			<tr>
				<td class="first"">
					<strong>轮换图状态</strong>
				</td>
				<td class="last">
				
					#if($!{entity.enablestatus}==0) #set ($ifselect1 ="selected")
						#else #set ($ifselect2 ="selected") #end
						<select style="width: 65%" name="enablestatus"
							value="${entity.enablestatus}">
							<option value='0' $!{ifselect1}>
								无效
							</option>
							<option value='1' $!{ifselect2} >
								有效
							</option>
						</select>
						
				 
				</td>
			</tr>






					#if($!{entity.rowindex}=="1") 
					#set ($ifselect1 ="selected")
					#elseif($!{entity.rowindex}=="2")
					#set ($ifselect2 ="selected") 
					#elseif($!{entity.rowindex}=="3")
					#set ($ifselect3 ="selected") 
					#elseif($!{entity.rowindex}=="4")
					#set ($ifselect4 ="selected") 
					#end
					
					
			<tr>
				<td class="first"">
					<strong>位置排序权重</strong>
				</td>
				<td class="last">
					<select style="width: 65%" name="rowindex" value="${entity.rowindex}">
						<option value='1' $!{ifselect1} >
								1
							</option>
							<option value='2' $!{ifselect2} >
								2
							</option>
							<option value='3' $!{ifselect3} >
								3
							</option>
							<option value='4' $!{ifselect4} >
								4
							</option>
					</select>
				</td>
			</tr>

				<tr>
					<td>
						<input type="submit" value="保 存" />
			</form>
			</td>
			</tr>
		</table>
		<p>
			&nbsp;
		</p>
	</div>
</div>
<div id="right-column">
	<strong class="h">INFO</strong>
	<div class="box">
		Detect and eliminate viruses and Trojan horses, even new and unknown
		ones. Detect and eliminate viruses and Trojan horses, even new and
	</div>
</div>
</div>
<div id="footer"></div>
</div>


</body>
</html>
